package com.service.imp;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.dao.AccountDao;
import com.entities.Account;
import com.service.AccountService;

@Service
public class AccountServiceImp implements AccountService {

	@Autowired
	private AccountDao accountDao;
	
	@Transactional(readOnly=true)
	@Override
	public Account loginAccount(String accountName, String accountPassword) {
		Account account = this.accountDao.loginAccount(accountName, accountPassword);
		return account;
	}

}
